package star.planets.meshview;

import java.awt.AWTEvent;
import javax.swing.JSplitPane;


public class J3DVisualizer extends javax.swing.JFrame {
	private static final long serialVersionUID = 1L;
	private J3DSceneCanvas canvasScene3D = null;
	private J3DPanelCommand commandConsole = null;


	public J3DVisualizer() {
		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
		enableEvents(AWTEvent.WINDOW_EVENT_MASK);
		this.setTitle("Cartesian space Visualizer");
		setBounds(0, 50, 1200, 880);

		canvasScene3D = new J3DSceneCanvas();
		commandConsole = new J3DPanelCommand(canvasScene3D);
		JSplitPane hSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, commandConsole, canvasScene3D);
		this.getContentPane().add(hSplit);

		pack();

		this.validate();
		this.setVisible(true);		
	}

	public static void main(String[] args) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new J3DVisualizer().setVisible(true);
            }
        });
	}
}
